.messagePage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
}

/* 头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
}

.headerTitle {
  font-weight: 600;
  font-size: 18px;
  color: #333;
}

.headerActions {
  display: flex;
  align-items: center;
}

.addButton {
  cursor: pointer;
  padding: 4px;
}

/* 标签页样式 */
.tabs {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}

.activeTab {
  color: #2b7efb;
  font-weight: 500;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #2b7efb;
  border-radius: 2px;
}

.badge {
  position: absolute;
  top: 8px;
  right: 25%;
  background-color: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 聊天列表样式 */
.chatsList {
  flex: 1;
  overflow-y: auto;
}

.chatItem {
  display: flex;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.chatItem:hover {
  background-color: #f9f9f9;
}

/* 旅游助手卡片样式 */
.travelAssistantItem {
  background-color: #f0f7ff;
  border-left: 3px solid #4a90e2;
}

.aiTag {
  background-color: #4a90e2;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.chatAvatar {
  position: relative;
  margin-right: 12px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.onlineIndicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #4cd964;
  border-radius: 50%;
  border: 2px solid #fff;
}

.chatInfo {
  flex: 1;
  overflow: hidden;
}

.chatName {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.chatLastMessage {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 60px;
}

.chatTime {
  font-size: 12px;
  color: #999;
}

.chatUnread {
  background-color: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 好友列表样式 */
.friendsList {
  flex: 1;
  overflow-y: auto;
}

.friendItem {
  display: flex;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.friendItem:hover {
  background-color: #f9f9f9;
}

.friendAvatar {
  position: relative;
  margin-right: 12px;
}

.friendInfo {
  flex: 1;
}

.friendName {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.friendStatus {
  font-size: 13px;
  color: #999;
}

.friendAction {
  display: flex;
  align-items: center;
}

.chatButton {
  background-color: #2b7efb;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* 好友请求列表样式 */
.requestsList {
  flex: 1;
  overflow-y: auto;
}

.requestItem {
  display: flex;
  padding: 12px 16px;
  background-color: #fff;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.requestItem:hover {
  background-color: #f9f9f9;
}

.requestAvatar {
  margin-right: 12px;
}

.requestInfo {
  flex: 1;
}

.requestName {
  font-weight: 500;
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.requestMessage {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.requestStatus {
  font-size: 12px;
  color: #2b7efb;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

/* 空状态样式 */
.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 16px;
}

.emptyIcon {
  margin-bottom: 16px;
  opacity: 0.5;
}

.emptyText {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.emptySubtext {
  font-size: 14px;
  color: #999;
  text-align: center;
}

/* 登录页面样式 */
.loginContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 16px;
  background-color: #f5f5f5;
}

.loginForm {
  width: 100%;
  max-width: 320px;
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.loginTitle {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
  text-align: center;
}

.formGroup {
  margin-bottom: 16px;
}

.formLabel {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.formInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.formInput:focus {
  outline: none;
  border-color: #2b7efb;
}

.formHint {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}

.loginButton {
  width: 100%;
  background-color: #2b7efb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.loginButton:hover {
  background-color: #1a6fe0;
}

.loginButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}